﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfrmPlantillaBuscar.aspx.cs" Inherits="wfrmPlantillaBuscar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<script type="text/javascript">
function OnRowClick(e){
_aspxClearSelection();
dgvCategoria._selectAllRowsOnPage(false);
dgvCategoria.SelectRow(e.visibleIndex,true);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Listado de Plantillas</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <br />
        <dx:ASPxGridView ID="dgvCategoria" runat="server" AutoGenerateColumns="False" Width="654px" Caption="Listado de Plantilla de Actividades" DataSourceID="SqlDataSource1" ClientInstanceName="dgvCategoria" KeyFieldName="ID">
            <Styles>
                <Header CssClass="tableHeader" Font-Bold="True" ForeColor="White">
                </Header>
                <AlternatingRow Enabled="True">
                </AlternatingRow>
                <PagerBottomPanel BackColor="#D7C8C7" ForeColor="White">
                </PagerBottomPanel>
            </Styles>
            <SettingsPager>
                <Summary AllPagesText="P&#225;ginas: {0} - {1} ({2} Categor&#237;as)" Text="P&#225;gina {0} of {1} ({2} Categor&#237;as)" />
            </SettingsPager>
            <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="0">
                    <ClearFilterButton Visible="True">
                    </ClearFilterButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn Caption="Codigo" FieldName="ID" VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Plantilla Actividad" FieldName="PLANTILLA" VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Industria" FieldName="INDUSTRIA" VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Canal" FieldName="CANAL" VisibleIndex="4">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Estado" FieldName="ESTADO" VisibleIndex="5">
                </dx:GridViewDataTextColumn>
            </Columns>
            <Settings ShowFilterRow="True" />
        </dx:ASPxGridView>
        &nbsp;&nbsp;<br />
                            <asp:Button ID="btnSeleccionar" runat="server" Text="Seleccionar" />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GPConnectionString2 %>" SelectCommand="SELECT [ID], [PLANTILLA], [INDUSTRIA], [CANAL], [ESTADO] FROM [TB_PLANTILLA]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>